# 接口对象层


class TestLogin(object):
    # 获取验证码
    @classmethod
    def test01_login_rmd(cls, session):
        url = "https://test-api-base.mmtwo.cn/captchas/8e20ddd0-ac16-11ed-9172-39cda48efa3c/LOGIN?rmd=1676357225721"
        session.get(url)

    # 登录
    @classmethod
    def test02_login(cls, session, Login_params):
        url = "https://test-api-seller.mmtwo.cn/seller/login"
        resp = session.get(url, params=Login_params)
        return resp

    # 断言
    def common_assert(self, resp, status_code):
        self.assertEqual(status_code, resp.status_code)


